package com.espirit.builder.biz;

import org.springframework.stereotype.Component;

import com.espirit.eap.manager.ModelBuilderSupport;
import com.espirit.finance.core.AcctItemScope;

@Component
public class AcctItemScopeBuilder extends ModelBuilderSupport {
	protected static final String FROM = "from";
	protected static final String TO = "to";
	protected static final String PRICE = "price";
	protected static final String STYLE = "style";
	protected static final String ACCTITEMFACTOR = "acctItemFactor";
	protected static final String ACCTITEMREF = "acctItemRef";
	
	@Override
	public boolean init() {
		return super.setClass(AcctItemScope.class, "Item scope Define", "区间定义");
	}

	@Override
	public void buildFields() {
		super.buildFields();
		addModelField(FROM, "From(>)", "从(>)");
		addModelField(TO, "To(<=)", "到(<=)");
		addModelField(PRICE, "PRICE/AMOUNT", "单价／金额");
		addModelField(STYLE, "Style", "方式");
		addModelField(ACCTITEMFACTOR, "Factor", "参数因子");
		addModelField(ACCTITEMREF, "Reference", "参考属性");
	}
	
	@Override
	protected void addSearchFields() {
	}
	
	@Override
	protected void addListFields() {
		addListField(convertPropertyToField(FROM, TO, PRICE, STYLE, ACCTITEMREF, ACCTITEMFACTOR));
	}
	
	@Override
	protected void addDetailFields() {
	}
	
}
